package com.ojoin.ojoin.eb_spider.service.stat;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.ojoin.ojoin.eb_spider.utils.WebServiceUtils;
import com.ojoin.trade.common.utils.LogUtils;
import com.ojoin.trade.supplyloan_core.web.domain.TbCatchdataStrategy;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlLoanStatTotal;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlPlatformUser;
@Service
public class SupplierJDstat extends BaseStatTotal {

	private Logger log = LoggerFactory.getLogger(SupplierJDstat.class);

	@Override
	public void invoke(TbSlPlatformUser user,TbCatchdataStrategy ca, TbSlLoanStatTotal total)
			throws Exception {

		long paymoney = WebServiceUtils.getSupplyInventoryMoneyByplateformId(
				user.getId(), ca,null, null, null);
		
		total.setTotalUnpaySettleorder(paymoney);
		
		LogUtils.info(log, "[paymoney--> %s]",paymoney);
	}

}
